package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.pojo.Order;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {
    Result order(Map map) throws Exception;

    Map findById(Integer id) throws Exception;

    //移动端获取预约详情
    Map find4Detail(Map map);

    //根据日期查查询预约数量
    List<Integer> findBookingCount(List<String> dates);

    //根据日期查询已到诊人数
    List<Integer> findConfirmedCount(List<String> dates);

    void addByCondition(Date orderDate, Integer setmealId, Integer id);

    Order findByOrderId(Integer id);

    void deleteById(Integer id);

    void changeStatus(Integer id);

    void edit(Integer id, Date orderDate, String orderStatus, String orderType, Integer setmealId);
}
